import request from "../utils/request";

// 查询业务列表
export function queryBizList() {
    return request({
        apiType:'coordinate',
        baseURL: 'carmanage',
        url: '/web/bizInfo/queryBizList',
        method: 'get',
    });
};
// 查询子业务列表
export function querySubBizList(bizId) {
    return request({
        apiType:'coordinate',
        baseURL: 'carmanage',
        url: '/web/bizInfo/querySubBizList?bizId=' + bizId,
        method: 'get'
    });
};
export function createApi(data) {
    return request({
        apiType:'coordinate',
        baseURL: 'carmanage',
        url: '/web/cdnFile/create',
        method: 'post',
        data
    });
};
// 分页查询cdn文件
export function queryFileByPage(data) {
    return request({
        apiType:'coordinate',
        baseURL: 'carmanage',
        url: '/web/cdnFile/queryByPage' ,
        method: 'post',
        data
    });
};
// 上传cdn文件
export function uploadCdnFile(data) {
    return request({
        apiType:'coordinate',
        baseURL: 'carmanage',
        url: '/web/cdnFile/create' ,
        method: 'post',
        headers:{
            'Content-Type': 'multipart/form-data;charset=UTF-8',
        },
        data
    });
};
// 删除文件
export function deleteApi(data) {
    return request({
        apiType:'coordinate',
        baseURL: 'carmanage',
        url: '/web/cdnFile/delete',
        method: 'get',
        params: {
            ...data
        }
    });
};



 